<?php
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/
 
	defined('_JEXEC') or die('Restricted access'); 
	$row = $this->row;
	$str_filter = '';
	$str_filter = '';
				$str_filter .= "&type=$row->feed_type";
				$str_filter .= "&name=$row->feed_name";
				if (($row->msg_count!=0)&&($row->msg_count!=null))
					$str_filter .= "&job_number=$row->msg_count";
				$str_filter .= "&cache=$row->feed_cache";
				$str_filter .= "&description=$row->feed_description";
				$str_filter .= "&order_by=$row->msg_orderby";
				$str_filter .= "&html=$row->feed_renderHTML";
				$str_filter .= "&image=$row->feed_renderImages";
				if (($row->filter_cat_id!='')&&($row->filter_cat_id!=null))
				{
					$db = JFactory::getDBO();
					$query = "SELECT  name FROM #__ja_categories WHERE id IN ($row->filter_cat_id)";
					$db->setQuery($query);
					$result = $db->loadResultArray();
					if (is_array($result))
						$str_filter .= "&category=".implode(',',$result);	
				}				
				if (($row->filter_location_id!='')&&($row->filter_location_id!=null))
				{	
					$db = JFactory::getDBO();
					$query = "SELECT  name FROM #__ja_location WHERE id IN ($row->filter_location_id)";
					$db->setQuery($query);
					$result = $db->loadResultArray();
					if (is_array($result))
						$str_filter .= "&location=".implode(',',$result);	
					
				}
				if (($row->filter_date!='')&&($row->filter_date!=null)&&($row->filter_date!=0))
					$str_filter .= "&effected_date=$row->filter_date";
				if ($row->filter_is_premium)
					$str_filter .= "&premium=1";
				if (($row->filter_exitems!='')&&($row->filter_exitems!=null))	
					$str_filter .= "&exitems=$row->filter_exitems";
				if (($row->filter_exemployers!='')&&($row->filter_exemployers!=null))	
					$str_filter .= "&exemployers=$row->filter_exemployers";
				if (($row->filter_inemployers!='')&&($row->filter_inemployers!=null))	
					$str_filter .= "&inemployers=$row->filter_inemployers";
                $feedurl = JRoute::_( JURI::root() . "index.php?option=com_jajobboard&view=jafeeds&layout=rss".$str_filter);
?>
<div class="moduletable">
	<table class="tablelist">
		<tr>
			<td class="sectiontableheader">
				<?php echo JText::_("Simple URL"); ?>
			</td>
			<td class="sectiontableheader">
				<?php echo JText::_("Detail URL"); ?>
			</td>
		</tr>
		<tr>
			<td>
				<a href="<?php echo JRoute::_( JURI::root() . "index.php?option=com_jajobboard&view=jafeeds&layout=rss&alias=$row->feed_alias"); ?>"><?php echo JRoute::_( JURI::root() . "index.php?option=com_jajobboard&view=jafeeds&layout=rss&alias=$row->feed_alias");?></a>
			</td>
			<td>
				<a href="<?php echo $feedurl; ?>"><?php echo $feedurl; ?></a>
			</td>
		</tr>
	</table>
</div>